package com.usian.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/*
 * 作者：m鹏h
 * 时间；2023/8/4 16:36
 * 描述：
 **/
@Data
@ToString
@TableName(value = "cou")
public class Cou {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String couName;

    private String labId;

    private Integer leaPeoNum;

    private Integer likeNum;

    private Integer couSort;
    private Integer userId;

    private Integer couStatus;

    private String couText;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField(exist = false)
    private Integer currentPage;

    @TableField(exist = false)
    private Integer pageSize;

    private String couPhoto;

    private Integer counts;

    private Integer likes;

    private List<Lab> labList;

}
